package com.ruoyi.common.constant.archives;

public class ArchivesConstants {

    public enum CheckRecordTypeEnum {

        Normal("常规自查", "Normal"),
        All("全项自查", "All"),
        Report("全项自查整改报告", "Report"),
        ;

        private final String typeName;
        private final String typeValue;

        CheckRecordTypeEnum(String typeName, String typeValue) {
            this.typeName = typeName;
            this.typeValue = typeValue;
        }

        public String getTypeName() {
            return this.typeName;
        }

        public String getTypeValue() {
            return this.typeValue;
        }

        public static String getTypeNameByValue(String typeValue) {
            for (CheckRecordTypeEnum purchaseTypeEnum : CheckRecordTypeEnum.values()) {
                if (purchaseTypeEnum.getTypeValue().equals(typeValue)) {
                    return purchaseTypeEnum.getTypeName();
                }
            }
            return null;
        }
    }

    public enum SafetyRecordTypeEnum {

        Risk("风险管控清单", "Risk"),
        Day("每日检查记录", "Day"),
        Week("每周治理报告", "Week"),
        Month("每月会议纪要", "Month"),
        ;

        private final String typeName;
        private final String typeValue;

        SafetyRecordTypeEnum(String typeName, String typeValue) {
            this.typeName = typeName;
            this.typeValue = typeValue;
        }

        public String getTypeName() {
            return this.typeName;
        }

        public String getTypeValue() {
            return this.typeValue;
        }

        public static String getTypeNameByValue(String typeValue) {
            for (SafetyRecordTypeEnum purchaseTypeEnum : SafetyRecordTypeEnum.values()) {
                if (purchaseTypeEnum.getTypeValue().equals(typeValue)) {
                    return purchaseTypeEnum.getTypeName();
                }
            }
            return null;
        }
    }

    public enum EmerHandleTypeEnum {

        SGXX("事故信息报告", "SGXX"),
        WHKZ("危害控制", "WHKZ"),
        RYJZ("人员救治", "RYJZ"),
        SGDC("事故调查", "SGDC"),
        SHCL("善后处理", "SHCL"),
        YQYD("舆情应对", "YQYD"),

        ;

        private final String typeName;
        private final String typeValue;

        EmerHandleTypeEnum(String typeName, String typeValue) {
            this.typeName = typeName;
            this.typeValue = typeValue;
        }

        public String getTypeName() {
            return this.typeName;
        }

        public String getTypeValue() {
            return this.typeValue;
        }

        public static String getTypeNameByValue(String typeValue) {
            for (EmerHandleTypeEnum purchaseTypeEnum : EmerHandleTypeEnum.values()) {
                if (purchaseTypeEnum.getTypeValue().equals(typeValue)) {
                    return purchaseTypeEnum.getTypeName();
                }
            }
            return null;
        }
    }


}
